package cn.itcast.nems.journal.enumeration;

import cn.itcast.ic.common.exception.v2.bean.BizErrorBody;
import cn.itcast.ic.common.exception.v2.bean.BizStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 优惠单异常提示模版
 * </p>
 *
 * @author changLu.Gao
 * @since 2023/12/10 9:02 AM
 **/
@Getter
@AllArgsConstructor
public enum JournalDiscountErrorBodyEnum implements BizErrorBody {
    WRITE_OFF_ERROR(BizStatusEnum.BAD_REQUEST, "此优惠单当前无法用于核销"),
    WRITE_OFF_ERROR_FOR_PERSON(BizStatusEnum.BAD_REQUEST, "此优惠单无法用于当前客户/学员:%s"),
    BETWEEN_TIME_ERROR(BizStatusEnum.BAD_REQUEST, "业务发生时间不在%s配置之间"),
    CLAZZ_TYPE_ERROR(BizStatusEnum.BAD_REQUEST, "目标班级类型不符合优惠单配置"),
    VISIBILITY_TYPE_ERROR(BizStatusEnum.BAD_REQUEST, "优惠券可见范围错误"),
    ;

    public BizStatusEnum status;
    public String message;
}
